package com.pet.petadoption.pet.mapper;

import com.pet.petadoption.pet.entity.Pet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PetMapper  {

   List<Pet> getAllPet(Map<String,Object> map);
   List<Pet> getAllPetNotAdopted(Map<String,Object> map);
   Pet findPetById(@Param("id") Integer id);
   List<Pet> findPetByInfo(@Param("info") String info);
   Boolean addPet(Pet pet);
   Integer delPet(@Param("id") Integer  id);
   Integer modifyPet(Pet pet);
   Integer delArr(@Param("ids") String ids);

}
